﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
namespace NHibernateDemo.DAL.Entity {
    public class Name {
        [Required]
        [StringLength(50)]
        public  string FirstName { get; set; }
        [Required]
        [StringLength(50)]
        public  string LastName { get; set; }
        public string FullName {
            get {
                return FirstName + " " + LastName;
            }
        }
        public string PassportName {
            get {
                return FirstName +"_"+ LastName;
            }
        }
    }
}
